#ifndef __BSP_SPI_H
#define __BSP_SPI_H

#include "stm32f4xx.h"
#include "stm32f4xx_spi.h"

#include "bsp_gpio.h"













void bsp_spi_init(SPI_TypeDef* SPIx,uint8_t AFstate,uint16_t SPI_DataSize);
void bsp_spi_SetSpeed(SPI_TypeDef* SPIx,u8 SPI_BaudRatePrescaler);

uint16_t bsp_spi_swap(SPI_TypeDef* SPIx,uint16_t TxData);


#endif

